import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Demo01
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 17:37
 * @ModifyDate 2022/8/14 17:37
 * @Version 1.0
 */
public class Demo01 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add("王二");
        list.add("麻子");

        for (String s : list) {
            System.out.println(s);
        }
    }
}
